package com.ms.service.module.fish.game;

import com.xpec.c4.game.utility.GUID;

public class KeepSeet {

private int deskId;
	
	private int index;
	
	private GUID uid;
	
	private long endTime;
	
	public KeepSeet(int deskId,int index,GUID uid,long endTime) {
		this.setDeskId(deskId);
		this.setIndex(index);
		this.uid = uid;
		this.endTime = endTime;
	}
	
	public GUID getUid() {
		return uid;
	}
	
	public void setUid(GUID uid) {
		this.uid = uid;
	}
	
	public Long getEndTime() {
		return endTime;
	}
	
	public void setEndTime(Long endTime) {
		this.endTime = endTime;
	}

	public boolean isOver() {
		return System.currentTimeMillis()/1000 > endTime;
	}

	public int getLeftTime() {
		return (int) (endTime - (System.currentTimeMillis()/1000));
	}

	public int getDeskId() {
		return deskId;
	}

	public void setDeskId(int deskId) {
		this.deskId = deskId;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}
	
}
